#ifndef QLSPROGRESSBAR_H
#define QLSPROGRESSBAR_H

#include <QObject>
#include <QSlider>
#include <QEvent>
#include <QMouseEvent>

#include "qls_av_widget_global.h"

class QLS_AV_WIDGET_EXPORT QLsProgressBar : public QSlider
{
    Q_OBJECT
public:
    QLsProgressBar(QWidget *parent = nullptr);

signals:
    /* 跳转(微秒) */
    void sigSeek(qint64 pos);

protected:
    /* 事件过滤器 */
    bool eventFilter(QObject *watched, QEvent *event);
    /* 鼠标按下事件 */
    void mousePressEvent(QMouseEvent *event);
    /* 鼠标释放事件 */
    void mouseReleaseEvent(QMouseEvent *event);
};

#endif // QLSPROGRESSBAR_H
